diff --git a/.gitmodules b/.gitmodules index 46774f3..239a47c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,3 +28,6 @@ [submodule "bundle/scala.vim"] path = bundle/scala.vim url = git://github.com/jergason/scala.vim.git +[submodule "bundle/zencoding.vim"] + path = bundle/zencoding.vim + url = git://github.com/mattn/zencoding-vim.git diff --git a/bundle/zencoding.vim b/bundle/zencoding.vim new file mode 160000 index 0000000..b162859 --- /dev/null +++ b/bundle/zencoding.vim @@ -0,0 +1 @@ +Subproject commit b162859ca804da94c9f150c3eb79f2ddf304e803 diff --git a/vimrc b/vimrc index 3695c1d..1685fa0 100644 --- a/vimrc +++ b/vimrc @@ -1,3 +1,6 @@ +scriptencoding utf-8 +set encoding=utf-8 + call pathogen#infect() syntax on "enable syntax hightlighting @@ -24,11 +27,32 @@ if has("autocmd") endif "Set before any key remapping let mapleader = '\' +"open config with \r +nmap r :e $myvimrc "Remove search highlight when is pressed nnoremap :nohlsearch "highlight search results set hlsearch +"highlight current line +set cursorline +"show whitespace +"set list +set listchars=tab:▸\ ,eol:¬ +"Invisible character colors +highlight NonText guifg=#4a4a59 +highlight SpecialKey guifg=#4a4a59 + +"toggle whitespace +nmap l :set list! + +"tab settings +set shiftwidth=4 +set tabstop=4 +set expandtab + +"set sane backspace behaviour +set backspace=2 "No more arrow keys nnoremap @@ -46,14 +70,20 @@ nnoremap k gk "press jk in quick succession for esc key imap jk +"press space in normal mode to center screen +nmap zz if has("gui_running") - set guifont=Lucida\ Console:h10:cRUSSIAN + set guifont=Consolas:h10:cRUSSIAN,Lucida\ Console:h10:cRUSSIAN + "set guifont=Menlo_for_Powerline:h10:cANSI else let g:Powerline_symbols = 'fancy' endif if exists("g:loaded_syntastic_c_autoload") - nmap c SyntasticCheck - nmap e Errors + nmap c :SyntasticCheck + nmap e :Errors endif + +nmap ] :bn +nmap [ :bp