vim 高亮记录操作

创建vimrc文件,并添加以下内容

[user@node3 python]$ vim ~/.vimrc
set nu

set tabstop=4
set expandtab
" delete 4
set softtabstop=4

set shiftwidth=4
set autoindent
set cindent

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

你可能感兴趣的:(综合,vim,excel,编辑器)