Created
March 2, 2019 12:23
-
-
Save begin29/04068f9df5720d2dbbf30e4e44776242 to your computer and use it in GitHub Desktop.
everyday using vim config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func Backspace() | |
if col('.') == 1 | |
if line('.') != 1 | |
return "\<ESC>kA\<Del>" | |
else | |
return "" | |
endif | |
else | |
return "\<Left>\<Del>" | |
endif | |
endfunc | |
set autowriteall | |
set clipboard=unnamed | |
set number | |
set ruler | |
set nocursorline | |
"update git gutter time | |
set updatetime=100 | |
let g:indentLine_enabled = 1 | |
"map <F2> :.w !pbcopy<CR><CR> | |
"inoremap <A-b> <C-o>b | |
"inoremap <A-w> <C-o>w | |
let g:ctrlp_root_markers = ['.ctrlp'] | |
let g:ctrlp_show_hidden = 1 | |
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git\|tmp' | |
set wildignore+=*/tmp/cache/*,.git/*,*.DS_Store,*/node_modules/*,*/tmp/ruby/* | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
set term=xterm-256color | |
"filetype plugin indent on | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
syntax on | |
filetype on | |
filetype indent on | |
filetype plugin on | |
call plug#begin('~/.vim/plugged') | |
Plug 'mhartington/oceanic-next' | |
Plug 'kchmck/vim-coffee-script' | |
Plug 'scrooloose/nerdcommenter' | |
Plug 'Yggdroot/indentLine' | |
Plug 'slim-template/vim-slim' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'airblade/vim-gitgutter' | |
call plug#end() | |
"tree plugin style | |
let g:netrw_liststyle = 3 | |
let g:netrw_banner = 0 | |
let g:netrw_browse_split = 4 | |
let g:netrw_winsize = 25 | |
let g:netrw_altv = 1 | |
set backspace=2 | |
inoremap <BS> <c-r>=Backspace()<CR> | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set laststatus=2 | |
set autochdir | |
set splitbelow | |
set splitright | |
map <C-a> <esc>ggVG<CR> | |
set wrap | |
set linebreak | |
" note trailing space at end of next line | |
set showbreak=>\ \ \ | |
autocmd BufWritePre * %s/\s\+$//e | |
set tags=tags;/ | |
nnoremap <silent> <F8> :TlistToggle<CR> | |
let Tlist_GainFocus_On_ToggleOpen = 1 | |
"increase tab in full height | |
noremap <F3> <C-W>_ | |
set hlsearch | |
colorscheme OceanicNext | |
hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline | |
hi PmenuSel guifg=NONE guibg=blue gui=NONE | |
hi Pmenu guifg=#ffdd00 guibg=NONE gui=NONE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment