Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 59: Line 59:
 
exec dir . " " . orientation " " . currFname
 
exec dir . " " . orientation " " . currFname
 
endfunction
 
endfunction
βˆ’
noremap ^W^] ^W^]:silent call ToggleSplit ("d")<CR>
+
noremap ^W^] ^W^]:silent call ToggleSplit ("d")&lt;CR&gt;
 
</pre>
 
</pre>
   
Line 66: Line 66:
   
 
In which case the above mapping becomes:
 
In which case the above mapping becomes:
βˆ’
noremap ^W^] :set splitbelow<CR>^W^]:silent call ToggleSplit ("u")<CR>:set nosplitbelow<CR>
+
noremap ^W^] :set splitbelow&lt;CR&gt;^W^]:silent call ToggleSplit ("u")&lt;CR&gt;:set nosplitbelow&lt;CR&gt;
   
 
Or you could just
 
Or you could just
Line 72: Line 72:
   
 
Very elegant and almost perfect, but it screws up if you want to run a command with ranges
 
Very elegant and almost perfect, but it screws up if you want to run a command with ranges
βˆ’
noremap : :vertical<Space>
+
noremap : :vertical&lt;Space&gt;
   
 
==Comments==
 
==Comments==
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)