vi
searching whole word in Vim (dash character)
I know for searching a whole word I should use /\\<mypattern\\>. But this is not true for dash (+U002d) character and /\\<-\\> always fails. I also try /\\<\\%d45\\> and it fails too[详细]
2023-02-09 03:18 分类:问答Vim: change mouse click behavior
I am playing with my vimrc settings, and enabled the mouse support. set mouse=a Now, I miss the copy and paste option with mouse. Normally, if the mouse is not enabled, I could copy text with left[详细]
2023-02-09 00:46 分类:问答How to open a file having 50k lines in vi editor?
I am trying to open a log file in solaris vi editor, only 4k lines getting opened. If i open that same file using less, all lines got properly opene开发者_Python百科d. If I execute the wc command on t[详细]
2023-02-08 10:23 分类:问答How can I reorder parts of text with a find and replace in vi(m)?
I have data in this format: 03/18/2010 03/18/2010 04/19/2010 I would like to move the year from the end of each date string, to the beginning, like so:[详细]
2023-02-08 02:44 分类:问答Possible to add spacing every 4 characters in vi?
Is it possible to add spacing every 4 characters 开发者_Go百科in vi? And if it is, what\'s a good google term to search for to learn how to do similar stuff?To add a space every 4 characters you could[详细]
2023-02-07 20:21 分类:问答programming in vi
Is it possible to 开发者_运维问答use vi/vim commands to write the number 1-10 on separate lines?[详细]
2023-02-06 03:27 分类:问答vim syntax highlight improve performance
H开发者_JS百科ow do I improve performance when I\'m scrolling my files and coding them? With syntax highlighting, vim is so slow. When I switch it off, everything is ok.[详细]
2023-02-06 02:01 分类:问答Syntax highlighting in vim for python
How do I do I set the syntax highlighting in Vim 7 for python? I would like to set my own colorschemes, and syntax h开发者_运维问答ighlighting for a type of code file.The command to enable syntax hig[详细]
2023-02-05 12:07 分类:问答Convert vim / search to search and replace without retyping regular expression
When I perform a search and replace in Vim, I like to use the search function (/regex) fir开发者_开发百科st to visually test my regex.[详细]
2023-02-04 02:02 分类:问答Remapping keys for ksh vi mode
In my .vimrc file I have the line inoremap jj << Esc>> (I can\'t live without this :)) I wish to ha开发者_开发知识库ve the same remap while using ksh in set -o vi mode, any advice on[详细]
2023-02-04 00:39 分类:问答