保存一份VIM配置

    xiaoxiao2025-06-11  18

    使用的插件  NERDTree A.vim Taglist NERDComment

    set nocompatible set nu set backspace=indent,eol,start set ts=2 set shiftwidth=2 set et set ai set autoread set cmdheight=2 set showmatch set hlsearch set incsearch set autoindent set formatoptions=tcrqn set smartindent set smarttab filetype on filetype plugin on filetype indent on syntax on set background=dark colorscheme darkblue setlocal noswapfile set bufhidden=hide set wildmenu set ruler set rulerformat=%20(%2*%<%f%=\ %m%r\ %3l\ %c\ %p%%%) set laststatus=2 set statusline=%F%m%r%h%w\[POS=%l,%v][%p%%]\%{strftime(\"%d/%m/%y\ -\ %H:%M\")}  " windows下面菜单的乱码问题 source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim language message zh_CN.utf-8 if has("multi_byte")   if &termencoding == ""     let &termencoding = &encoding   endif   set encoding=utf-8   setglobal fileencoding=utf-8   set fileencodings=utf-8,latin1,ucs-bom endif " short cuts for c && c++ " Using A.vim to switch between header && iplementation file. nmap <leader>h :A<kEnter> nmap <leader>n :NERDTree<kEnter>

    转载请注明原文地址: https://ju.6miu.com/read-1299851.html
    最新回复(0)