南强小屋 Design By 杰米
有需要的朋友可以参考下。
复制代码代码如下:
" This is my _vimrc under windows platform
" and it can be used on *nix too
" all the difference of them is the font setting session
" happy Viming,
" copyLeft (#) Abruzzi John
set linebreak " line break
set nocompatible " no compatible
set history=400 " history
set ruler
set number " line number
set hlsearch " highlight search
set noincsearch " no in C search
set expandtab " expand table
set t_vb= "close bell
set foldmethod=marker
set tabstop=4 " table step
set shiftwidth=4
set nobackup " don't backup
set smarttab " smart table
set smartindent " smart indent
set autoindent " auto indent
set cindent "cindent
set cursorline " hightlight cursor line 高亮光标所在行
" set the back space
set backspace=indent,eol,start "这行比较重要,刚接触vim的朋友会发现有时候backspace键删不了文字
colorscheme desert " color scheme
let Tlist_Use_Right_Window=0 " for tag_list plugin only
let Tlist_File_Fold_Auto_Close=1 " for tag_list plugin only
let g:winManagerWindowLayout="FileExplorer|TagList" " for winmanager
filetype plugin indent on " filetype setting
set completeopt=longest,menu " for code complete
" the following function is used for show the status bar on the buttom
function! CurrectDir()
let curdir = substitute(getcwd(), "", "", "g")
return curdir
endfunction
set statusline=\ [File]\ %F%m%r%h\ %w\ \ [PWD]\ %r%{CurrectDir()}%h\ \ %=[Line]\ %l,%c\ %=\ %P
" this is a setting of font
if has("win32")
set guifont=Courier_New:h10:cANSI
endif
" make sure that syntax always on
if exists("syntax_on")
syntax reset
else
syntax on
endif
" java complete
if has("autocmd")
autocmd Filetype java setlocal omnifunc=javacomplete#Complete
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""
let performance_mode=1
function MySys()
if has("win32")
return "win32"
elseif has("unix")
return "unix"
else
return "mac"
endif
endfunction
if MySys() == "unix" || MySys() == "mac"
set shell=bash
else
" set win32 shell
endif
" set auto read when file is changed from outside
if exists("&autoread")
set autoread
endif
" enable the mouse
if exists("&mouse")
set mouse=a
endif
" set mapleader
let mapleader=","
let g:mapleader=","
"fast saving
nmap <leader>x :xa!<cr>
nmap <leader>w :w!<cr>
"switch to current directory
map <leader>cd :cd %:p:h<cr>
" just for fun
map <F9> ggVGg?
" folding code
if exists("&foldenable")
set fen
endif
if exists("&foldlevel")
set fdl=0
endif
" tag list --
map <F3> :Tlist<cr>
"remove the windows ^M windows系统中常常可以看到文本中夹杂着^M这样的控制字符,用此命令删除之
noremap <leader>m :%s/
复制代码代码如下:
" This is my _vimrc under windows platform
" and it can be used on *nix too
" all the difference of them is the font setting session
" happy Viming,
" copyLeft (#) Abruzzi John
set linebreak " line break
set nocompatible " no compatible
set history=400 " history
set ruler
set number " line number
set hlsearch " highlight search
set noincsearch " no in C search
set expandtab " expand table
set t_vb= "close bell
set foldmethod=marker
set tabstop=4 " table step
set shiftwidth=4
set nobackup " don't backup
set smarttab " smart table
set smartindent " smart indent
set autoindent " auto indent
set cindent "cindent
set cursorline " hightlight cursor line 高亮光标所在行
" set the back space
set backspace=indent,eol,start "这行比较重要,刚接触vim的朋友会发现有时候backspace键删不了文字
colorscheme desert " color scheme
let Tlist_Use_Right_Window=0 " for tag_list plugin only
let Tlist_File_Fold_Auto_Close=1 " for tag_list plugin only
let g:winManagerWindowLayout="FileExplorer|TagList" " for winmanager
filetype plugin indent on " filetype setting
set completeopt=longest,menu " for code complete
" the following function is used for show the status bar on the buttom
function! CurrectDir()
let curdir = substitute(getcwd(), "", "", "g")
return curdir
endfunction
set statusline=\ [File]\ %F%m%r%h\ %w\ \ [PWD]\ %r%{CurrectDir()}%h\ \ %=[Line]\ %l,%c\ %=\ %P
" this is a setting of font
if has("win32")
set guifont=Courier_New:h10:cANSI
endif
" make sure that syntax always on
if exists("syntax_on")
syntax reset
else
syntax on
endif
" java complete
if has("autocmd")
autocmd Filetype java setlocal omnifunc=javacomplete#Complete
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""
let performance_mode=1
function MySys()
if has("win32")
return "win32"
elseif has("unix")
return "unix"
else
return "mac"
endif
endfunction
if MySys() == "unix" || MySys() == "mac"
set shell=bash
else
" set win32 shell
endif
" set auto read when file is changed from outside
if exists("&autoread")
set autoread
endif
" enable the mouse
if exists("&mouse")
set mouse=a
endif
" set mapleader
let mapleader=","
let g:mapleader=","
"fast saving
nmap <leader>x :xa!<cr>
nmap <leader>w :w!<cr>
"switch to current directory
map <leader>cd :cd %:p:h<cr>
" just for fun
map <F9> ggVGg?
" folding code
if exists("&foldenable")
set fen
endif
if exists("&foldlevel")
set fdl=0
endif
" tag list --
map <F3> :Tlist<cr>
"remove the windows ^M windows系统中常常可以看到文本中夹杂着^M这样的控制字符,用此命令删除之
noremap <leader>m :%s/
标签:
linux,Vim,经典配置
南强小屋 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
南强小屋 Design By 杰米
暂无linux Vim经典配置一例的评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。