Created
November 22, 2016 07:55
-
-
Save hashmaparraylist/1d57b71a0dba50c255e86695ff7523b1 to your computer and use it in GitHub Desktop.
linux 服务器最小.vimrc
This file contains 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
" Get out of VI's compatible mode | |
set nocompatible | |
" Set how many lines of history VIM to remember | |
set history=400 | |
" Enable filetype plugin | |
filetype plugin on | |
filetype indent on | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
let mapleader="," | |
let g:mapleader = "," | |
set hlsearch | |
set expandtab | |
set shiftwidth=4 | |
set tabstop=4 | |
set smarttab | |
set lbr | |
set tw=500 | |
set nu | |
set encoding=utf8 | |
"Always hide the statusline | |
set laststatus=2 | |
function! CurDir() | |
let curdir = substitute(getcwd(), '/Users/amir/', "~/", "g") | |
return curdir | |
endfunction | |
"Format the statusline | |
set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%{CurDir()}%h\ \ \ Line:\ %l/%L:%c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment