2011-11-28 27 views
27

के बाद लाइन की शुरुआत करने के लिए विम कर्सर कूदता है जब मैं बफर स्विच करता हूं और फिर उस पर वापस जाता हूं (मूल रूप से जब मैं किसी भी बफर पर वापस आ जाता हूं), कर्सर लाइन की शुरुआत में खोला जाता है, खोना लाइन में पिछली स्थिति। यह बहुत परेशान है।बफर स्विच

उत्तर

32

आप उपयोग कर सकते हैं स्थापित करने

:se nostartofline 

या कम:

:se nosol 

प्रलेखन:

  *'startofline'* *'sol'* *'nostartofline'* *'nosol'* 
'startofline' 'sol' boolean (default on)` 

     global 
     {not in Vi} 
When "on" the commands listed below move the cursor to the first 
non-blank of the line. When off the cursor is kept in the same column 
(if possible). This applies to the commands: CTRL-D, CTRL-U, CTRL-B, 
CTRL-F, "G", "H", "M", "L", gg, and to the commands "d", "<<" and ">>" 
with a linewise operator, with "%" with a count and to buffer changing 
commands (CTRL-^, :bnext, :bNext, etc.). Also for an Ex command that 
only has a line number, e.g., ":25" or ":+". 
In case of buffer changing commands the cursor is placed at the column 
where it was the last time the buffer was edited. 
NOTE: This option is set when 'compatible' is set. 
+0

जब भी मैं एक बफर बचाने के लिए, कर्सर बफर के शुरू करने के कूदता है, इस जवाब ने मुझे जिस समस्या का सामना करना पड़ा उसे हल किया। धन्यवाद। – qed

संबंधित मुद्दे