remove sensible; add syntax sync, exec nmap

This commit is contained in:
sup39 2020-06-01 11:06:24 +09:00
parent 9e8c6a35d7
commit daf1aaf62d
2 changed files with 9 additions and 4 deletions

View file

@ -8,9 +8,6 @@ endif
" plugin
call plug#begin('~/.vim/plugged')
" basic
Plug 'tpope/vim-sensible'
" markdown syntax
Plug 'plasticboy/vim-markdown'
let g:vim_markdown_new_list_item_indent = 0

10
vimrc
View file

@ -39,8 +39,11 @@ nnoremap <leader>dm :ALEGoToDefinition<CR>
nnoremap <leader>dl :ALEDetail<CR>
" external
nnoremap <leader>m :w<CR>:make<CR>
" syntax
nnoremap <leader>S :syntax sync fromstart<CR>
" debug
nnoremap <leader>X :exe getline('.')<CR>
nnoremap <leader>x :exe getline('.')<CR>
nnoremap <leader>X :exe join(getline('.', '$'), "\n")<CR>
nnoremap <leader>H :echo synIDattr(synID(line("."),col("."),1),"name")<CR>
" filetype-dependent
@ -90,3 +93,8 @@ let g:vim_indent_cont = 0
" completion
set completeopt=menu,menuone,noselect,noinsert
" status bar
set laststatus=2
set ruler
set wildmenu