vim_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vim_notes [2021/07/02 18:55] – [show line endings] admin | vim_notes [2023/08/02 18:18] (current) – [print full file name] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== How can I ===== | ===== How can I ===== | ||
==== vertical alignment of columns ==== | ==== vertical alignment of columns ==== | ||
- | < | + | |
- | :%!column -t | + | |
- | </ | + | |
- | + | ||
- | will convert | + | |
- | < | + | |
- | 1.33570301776, | + | |
- | 1.34538754675, | + | |
- | 1.34808186291, | + | |
- | </ | + | |
- | + | ||
- | to | + | |
- | < | + | |
- | 1.33570301776, | + | |
- | 1.34538754675, | + | |
- | 1.34808186291, | + | |
- | </ | + | |
- | + | ||
- | It also works on visual selection | + | |
- | < | + | |
- | :'<,'> | + | |
- | </ | + | |
- | + | ||
==== show line endings ==== | ==== show line endings ==== | ||
* https:// | * https:// | ||
Line 44: | Line 21: | ||
* https:// | * https:// | ||
+ | |||
+ | ==== Preprocess files before diffing them ==== | ||
+ | * [[Preprocess files before diffing them]] | ||
+ | tags | vimdiff, sort | ||
+ | |||
+ | |||
+ | ==== print full file name ==== | ||
+ | |||
+ | * :echo expand(" | ||
+ | * :!ls %:p | ||
+ | * :!realpath % - be aware that realpath is not POSIX | ||
+ | * :!echo " | ||
+ | * 1 followed by ctrl-g - shows full path name but does not expand " | ||
+ | * :'<,'> | ||
+ | * set statusline+=%F - will show full filename in the status bar | ||
+ | * ctrl-g - shows file path relative to vim's current working directory | ||
+ | |||
+ | Ref:- http:// | ||
vim_notes.1625252119.txt.gz · Last modified: 2021/07/02 18:55 by admin