Various additions to vimrc. Added zencoding

This commit is contained in:
vasili
2013-05-09 10:48:10 -07:00
parent 77977c2d87
commit ad0dbd6b5f
3 changed files with 37 additions and 3 deletions

3
.gitmodules vendored
View File

@@ -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

1
bundle/zencoding.vim Submodule

Submodule bundle/zencoding.vim added at b162859ca8

36
vimrc
View File

@@ -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 <leader> before any key remapping
let mapleader = '\'
"open config with \r
nmap <leader>r :e $myvimrc<cr>
"Remove search highlight when <Esc> is pressed
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>
"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 <leader>l :set list!<cr>
"tab settings
set shiftwidth=4
set tabstop=4
set expandtab
"set sane backspace behaviour
set backspace=2
"No more arrow keys
nnoremap <up> <nop>
@@ -46,14 +70,20 @@ nnoremap k gk
"press jk in quick succession for esc key
imap jk <Esc>
"press space in normal mode to center screen
nmap <space> 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 <leader>c SyntasticCheck
nmap <leader>e Errors
nmap <leader>c :SyntasticCheck<cr>
nmap <leader>e :Errors<cr>
endif
nmap <leader>] :bn<cr>
nmap <leader>[ :bp<cr>