Created
May 26, 2016 09:34
-
-
Save guyskk/7bc7d091ab37511a24434f7d44528223 to your computer and use it in GitHub Desktop.
nvim config
This file contains hidden or 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
if has('vim_starting') | |
set runtimepath+=~/.config/nvim/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin(expand('~/.config/nvim/bundle')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundle 'altercation/vim-colors-solarized' | |
NeoBundle 'scrooloose/nerdtree' | |
NeoBundle 'tpope/vim-fugitive' | |
NeoBundle 'mattn/emmet-vim' | |
NeoBundle 'scrooloose/syntastic' | |
NeoBundle 'Chiel92/vim-autoformat' | |
NeoBundle 'terryma/vim-multiple-cursors' | |
NeoBundle 'SirVer/ultisnips' | |
NeoBundle 'honza/vim-snippets' | |
NeoBundle 'iamcco/markdown-preview.vim' | |
call neobundle#end() | |
filetype plugin indent on | |
syntax enable | |
set background=dark | |
colorscheme solarized | |
set title | |
set number | |
set ruler | |
set background=dark | |
set nowrap " Do not wrap long lines | |
set autoindent " Indent at the same level of the previous line | |
set shiftwidth=4 " Use indents of 4 spaces | |
set expandtab " Tabs are spaces, not tabs | |
set tabstop=4 " An indentation every four columns | |
set softtabstop=4 " Let backspace delete indent | |
set clipboard+=unnamedplus | |
set colorcolumn=80 | |
let g:autopep8_disable_show_diff = 1 | |
let g:mkdp_path_to_chrome = "chromium" | |
let g:user_emmet_expandabbr_key = '<C-e>' | |
let g:UltiSnipsExpandTrigger = '<C-s>' | |
let g:syntastic_javascript_checkers = ['jshint'] | |
map <C-t> :NERDTreeToggle<CR> | |
map <C-p> :MarkdownPreview<CR> | |
" 显示可打印字符 | |
set listchars=tab:▸\ ,eol:¬,space:· | |
" F3 显示可打印字符开关 | |
nnoremap <F3> :set list! list?<CR> | |
" F4 换行开关 | |
nnoremap <F4> :set wrap! wrap?<CR> | |
noremap <F8> :Autoformat<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment