|
@ -7,6 +7,7 @@ filetype plugin on |
|
|
syntax on |
|
|
syntax on |
|
|
set tabstop=4 |
|
|
set tabstop=4 |
|
|
set tw=80 |
|
|
set tw=80 |
|
|
|
|
|
set linebreak |
|
|
set colorcolumn=80 |
|
|
set colorcolumn=80 |
|
|
set shiftwidth=4 |
|
|
set shiftwidth=4 |
|
|
set autoindent |
|
|
set autoindent |
|
@ -14,6 +15,11 @@ set mouse=c |
|
|
set clipboard=unnamedplus |
|
|
set clipboard=unnamedplus |
|
|
set foldmethod=marker |
|
|
set foldmethod=marker |
|
|
set linespace=5 |
|
|
set linespace=5 |
|
|
|
|
|
" set listchars=tab:\|\ |
|
|
|
|
|
" set list |
|
|
|
|
|
set cursorcolumn |
|
|
|
|
|
set cursorline |
|
|
|
|
|
set timeoutlen=300 |
|
|
" }}} set x=y " |
|
|
" }}} set x=y " |
|
|
|
|
|
|
|
|
autocmd VimResized * wincmd = |
|
|
autocmd VimResized * wincmd = |
|
@ -31,7 +37,6 @@ call plug#begin('~/.vim/plugged') |
|
|
Plug 'vim-scripts/L9' |
|
|
Plug 'vim-scripts/L9' |
|
|
" Plug 'vim-scripts/FuzzyFinder' |
|
|
" Plug 'vim-scripts/FuzzyFinder' |
|
|
Plug 'whatyouhide/vim-gotham' |
|
|
Plug 'whatyouhide/vim-gotham' |
|
|
Plug 'nathanaelkane/vim-indent-guides' |
|
|
|
|
|
Plug 'flazz/vim-colorschemes' |
|
|
Plug 'flazz/vim-colorschemes' |
|
|
Plug '907th/vim-auto-save' |
|
|
Plug '907th/vim-auto-save' |
|
|
let g:auto_save = 1 |
|
|
let g:auto_save = 1 |
|
@ -72,7 +77,7 @@ map <F4> :wqa<CR> |
|
|
map <F5> :qa!<CR> |
|
|
map <F5> :qa!<CR> |
|
|
map <F7> :AutoSaveToggle<CR> |
|
|
map <F7> :AutoSaveToggle<CR> |
|
|
map <F9> :LLPStartPreview<CR> |
|
|
map <F9> :LLPStartPreview<CR> |
|
|
set pastetoggle=<F9> |
|
|
|
|
|
|
|
|
set pastetoggle=<F10> |
|
|
map <S-Enter> O<ESC> |
|
|
map <S-Enter> O<ESC> |
|
|
|
|
|
|
|
|
" For splits. |
|
|
" For splits. |
|
@ -86,7 +91,6 @@ nnoremap <C-w> <C-W>| |
|
|
|
|
|
|
|
|
let mapleader="\<Space>" |
|
|
let mapleader="\<Space>" |
|
|
nnoremap <leader>e o<ESC> |
|
|
nnoremap <leader>e o<ESC> |
|
|
nnoremap <leader>f za |
|
|
|
|
|
nnoremap <leader>ff :set foldmethod=marker<CR> zM |
|
|
nnoremap <leader>ff :set foldmethod=marker<CR> zM |
|
|
nnoremap <leader>h :set hlsearch! hlsearch?<CR> |
|
|
nnoremap <leader>h :set hlsearch! hlsearch?<CR> |
|
|
nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR> |
|
|
nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR> |
|
@ -94,8 +98,10 @@ nnoremap <leader>pli :PlugInstall<CR> |
|
|
nnoremap <leader>plc :PlugClean<CR> |
|
|
nnoremap <leader>plc :PlugClean<CR> |
|
|
nnoremap <leader>plu :PlugUpdate<CR> |
|
|
nnoremap <leader>plu :PlugUpdate<CR> |
|
|
nnoremap <leader>r :.,.+s///g<left><left><left><left><left> |
|
|
nnoremap <leader>r :.,.+s///g<left><left><left><left><left> |
|
|
|
|
|
nnoremap <leader>rv :source $MYVIMRC<CR> |
|
|
nnoremap <leader>R :%s///g<left><left><left> |
|
|
nnoremap <leader>R :%s///g<left><left><left> |
|
|
nnoremap <leader>s :set syn=sh<CR> |
|
|
nnoremap <leader>s :set syn=sh<CR> |
|
|
|
|
|
nnoremap <leader>z za |
|
|
" }}} Mappings " |
|
|
" }}} Mappings " |
|
|
|
|
|
|
|
|
" Local Mappings {{{ " |
|
|
" Local Mappings {{{ " |
|
|