-
- 查找/etc/.vimrc的内容,如果没有的话
- 新建~/vimrc文件,在文件中写入如下内容即可
-
set ai " auto indenting set history=100 " keep 100 lines of history set ruler " show the cursor position syntax on " syntax highlighting set hlsearch " highlight the last searched term filetype plugin on " use the file type plugins " When editing a file, always jump to the last cursor position autocmd BufReadPost * if ! exists("g:leave_my_cursor_position_alone") | if line("'"") > 0 && line ("'"") <= line("$") | exe "normal g'"" | endif | endif
- 查找/etc/.vimrc的内容,如果没有的话