Skip to main content

Questions tagged [tab-characters]

Question about how to handle white spaces tab characters with vim, insert them, remove them, convert them to space characters, etc...

1 vote
0 answers
53 views

I use Tabular to emulate elastic tabs (https://nick-gravgaard.com/elastic-tabstops/), so I have a keybinding to align all elastic tabs, which are marked as <Space><Tab>. In most cases, I ...
Xenos's user avatar
  • 111
1 vote
2 answers
2k views

In my vimrc, I have set expandtab. When I edit a Tex file, however, Vim inserts tab characters , instead of spaces , when I press tab. I figured noexpandtab must be set by the TeX ftplugin for some ...
Wil's user avatar
  • 21
1 vote
1 answer
103 views

i want > / < and >> / << to simply insert and remove tab characters at the beginning of the line. variant: i would even prefer to have> / < and >>/ << insert / ...
windfish's user avatar
  • 123
0 votes
1 answer
67 views

Lines can be indented with tab characters. And it is quite obvious the there are better ways to do that than manually adding a tab character to the beginning of each line. But how to discover these ...
Volker Siegel's user avatar
1 vote
0 answers
49 views

I want to use tabs for indentation and spaces for alignment in the following way: keep tab characters (like noexpandtab) for all leading tabs of a file, but expand tabs (like expandtab) that occur ...
windfish's user avatar
  • 123
0 votes
3 answers
137 views

When I run vim with no configuration (--clean), in a bash file I cannot move the cursor before any indented tabs. I remember being annoyed by this before I regularly used vim, but early on as I grew ...
paradroid's user avatar
  • 432
2 votes
2 answers
321 views

In my vimrc I have filetype indent plugin on When I write python code, the indentation mostly looks good, but in lists it is too big: def fun(): return 'indent looks good' my_list = [ '...
Burrito's user avatar
  • 131
0 votes
0 answers
194 views

I set set listchars=tab:\│\ set list to my vimrc and it shows like below But when I go to another file it doesn't have a vertical line indent. It just affected 1 file, I have no idea about this. ...
Pham Hung's user avatar
  • 153
1 vote
1 answer
2k views

When pressing tab in any language in edit mode, nothing happens if the character before the cursor is not a space or a tab. Doing ctrl-v tab works, but I don't want to have to do that every time and ...
Doot's user avatar
  • 151
0 votes
3 answers
5k views

I know there's a way because it happened by accident. I was frenetically moving in a short region of text and at some point, with some wrong keystroke, the leading spaces on the line became a tab (and ...
Enlico's user avatar
  • 2,330
2 votes
1 answer
605 views

I am on CentOS 8.1 and using vim 8.0.1763. When I open a python file, e.g. vim tmp.py, I type tab and it inserts 4 spaces (see .vimrc below). When I type delete, it deletes all 4 spaces. I want it ...
irritable_phd_syndrome's user avatar
0 votes
1 answer
65 views

Configuration in my .vimrc: set tabstop=4 set expandtab set softtabstop=4 set shiftwidth=4 I have edit a file which contain tab,saved and reopen to have a look at it with set list,the tab key saved,...
showkey's user avatar
  • 1,146
1 vote
2 answers
429 views

I want to configure Vim to use spaces for <Tab>s everywhere. Therefore, I've had a look at :h tabstop to figure out how to perform the configuration. Looking at the help text, option 2. seems ...
Shuzheng's user avatar
  • 1,345
0 votes
1 answer
1k views

I like to code with 4 spaces as a tab. I added this to after/ftplugin/sass.vim: echom "before sass file settings" set shiftwidth=4 " <---- Problem setting, keeps changing back to 2 ...
run_the_race's user avatar
1 vote
1 answer
14k views

I used < in visual model to do a shift+tab reverse for a code inside loop after I removed the try/except phrase. Now, I get an error: $ python clean_captions.py File "clean_captions.py"...
Mona Jalal's user avatar

15 30 50 per page
1
2 3 4 5