Centos7中的GVIM设置

hrirmatl  于 2023-10-20  发布在  其他
关注(0)|答案(1)|浏览(157)

我在Centos7中安装了gvim。但是gvim默认的字体和大小不适合我,因为它又小又宽。我无法找到gvim设置调整。有什么需要帮忙的吗?
我试过/etc/vimrc,但它是为vim而不是gvim的,其次它不能打开写。

pqwbnv8z

pqwbnv8z1#

我希望这可以帮助你:我目前在/home目录下有一个.gvimrc文件,它设置了我对字体或 * 复制-粘贴 * 快捷方式的首选项:

cat ~/.gvimrc
set guifont=Monospace\ Regular\ 12
set lines=35 columns=120
set guicursor+=a:blinkon0

vmap <C-c> "+yi
vmap <C-x> "+c
vmap <C-v> c<ESC>"+p
imap <C-v> <C-r><C-o>+

function! MathAndLiquid()
    "" Define certain regions
    " Block math. Look for "$$[anything]$$"
    syn region math start=/\$\$/ end=/\$\$/
    " inline math. Look for "$[not $][anything]$"
    syn match math_block '\$[^$].\{-}\$'

    " Liquid single line. Look for "{%[anything]%}"
    syn match liquid '{%.*%}'
    " Liquid multiline. Look for "{%[anything]%}[anything]{%[anything]%}"
    syn region highlight_block start='{% highlight .*%}' end='{%.*%}'
    " Fenced code blocks, used in GitHub Flavored Markdown (GFM)
    syn region highlight_block start='```' end='```'

    "" Actually highlight those regions.
    hi link math Statement
    hi link liquid Statement
    hi link highlight_block Function
    hi link math_block Function
endfunction

" Call everytime we open a Markdown file
autocmd BufRead,BufNewFile,BufEnter *.md,*.markdown call MathAndLiquid()

相关问题