From 0ac6b8cfcda9989828a2c7253e8122f6cbf95764 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Sun, 29 Nov 2015 18:25:02 -0500 Subject: [PATCH] Add vim terminal key maps --- vim/ftdetect/dart.vim | 1 - vimrc | 36 +++++++++++++++++------------------- 2 files changed, 17 insertions(+), 20 deletions(-) delete mode 100644 vim/ftdetect/dart.vim diff --git a/vim/ftdetect/dart.vim b/vim/ftdetect/dart.vim deleted file mode 100644 index a9e68c9..0000000 --- a/vim/ftdetect/dart.vim +++ /dev/null @@ -1 +0,0 @@ -au BufRead,BufNewFile *.dart set filetype=dart diff --git a/vimrc b/vimrc index 71c9f77..ec423cb 100644 --- a/vimrc +++ b/vimrc @@ -17,6 +17,7 @@ Plug 'tpope/vim-fugitive' Plug 'tpope/vim-classpath' Plug 'Valloric/YouCompleteMe' Plug 'rking/ag.vim' +Plug 'scrooloose/syntastic' " Colors Plug 'reedes/vim-colors-pencil' @@ -102,9 +103,6 @@ set undoreload=10000 " When loading text files, wrap them and don't split up words. au BufNewFile,BufRead *.txt setlocal wrap au BufNewFile,BufRead *.txt setlocal lbr -" Clojurescript syntax highlighting -" au BufNewFile,BufRead *.cljs set filetype=clojure -" au BufNewFile,BufRead *.cljc set filetype=clojure " Remove trailing whitespace on save all files. au BufWritePre * :%s/\s\+$//e @@ -230,23 +228,28 @@ command! Qall qall " Disable Ex mode map Q +" Terminal mapping +map t :terminal +tnoremap e +tnoremap h +tnoremap j +tnoremap k +tnoremap l +nnoremap h +nnoremap j +nnoremap k +nnoremap l + " Map ctrl-movement keys to window switching map map map map -" Terminal mapping -map t :terminal -"tnoremap e -"tnoremap h -"tnoremap j -"tnoremap k -"tnoremap l -"nnoremap h -"nnoremap j -"nnoremap k -"nnoremap l +" Make it easier to jump around the command line. The default behaviour is +" using the arrow keys with or without shift +:cnoremap +:cnoremap " Window splitting - couldn't figure out how to remap v & n to " & @@ -271,10 +274,6 @@ endfunction call MapCR() nnoremap -" Make it easier to jump around the command line. The default behaviour is -" using the arrow keys with or without shift -:cnoremap -:cnoremap """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " ABBREVIATIONS @@ -297,7 +296,6 @@ endfunction inoremap =InsertTabWrapper() inoremap - """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " RENAME CURRENT FILE """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""