Various additions to vimrc. Added zencoding
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -28,3 +28,6 @@
|
|||||||
[submodule "bundle/scala.vim"]
|
[submodule "bundle/scala.vim"]
|
||||||
path = bundle/scala.vim
|
path = bundle/scala.vim
|
||||||
url = git://github.com/jergason/scala.vim.git
|
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
1
bundle/zencoding.vim
Submodule
Submodule bundle/zencoding.vim added at b162859ca8
36
vimrc
36
vimrc
@@ -1,3 +1,6 @@
|
|||||||
|
scriptencoding utf-8
|
||||||
|
set encoding=utf-8
|
||||||
|
|
||||||
call pathogen#infect()
|
call pathogen#infect()
|
||||||
syntax on "enable syntax hightlighting
|
syntax on "enable syntax hightlighting
|
||||||
|
|
||||||
@@ -24,11 +27,32 @@ if has("autocmd")
|
|||||||
endif
|
endif
|
||||||
"Set <leader> before any key remapping
|
"Set <leader> before any key remapping
|
||||||
let mapleader = '\'
|
let mapleader = '\'
|
||||||
|
"open config with \r
|
||||||
|
nmap <leader>r :e $myvimrc<cr>
|
||||||
|
|
||||||
"Remove search highlight when <Esc> is pressed
|
"Remove search highlight when <Esc> is pressed
|
||||||
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>
|
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>
|
||||||
"highlight search results
|
"highlight search results
|
||||||
set hlsearch
|
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
|
"No more arrow keys
|
||||||
nnoremap <up> <nop>
|
nnoremap <up> <nop>
|
||||||
@@ -46,14 +70,20 @@ nnoremap k gk
|
|||||||
|
|
||||||
"press jk in quick succession for esc key
|
"press jk in quick succession for esc key
|
||||||
imap jk <Esc>
|
imap jk <Esc>
|
||||||
|
"press space in normal mode to center screen
|
||||||
|
nmap <space> zz
|
||||||
|
|
||||||
if has("gui_running")
|
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
|
else
|
||||||
let g:Powerline_symbols = 'fancy'
|
let g:Powerline_symbols = 'fancy'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists("g:loaded_syntastic_c_autoload")
|
if exists("g:loaded_syntastic_c_autoload")
|
||||||
nmap <leader>c SyntasticCheck
|
nmap <leader>c :SyntasticCheck<cr>
|
||||||
nmap <leader>e Errors
|
nmap <leader>e :Errors<cr>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
nmap <leader>] :bn<cr>
|
||||||
|
nmap <leader>[ :bp<cr>
|
||||||
|
|||||||
Reference in New Issue
Block a user